package com.qf.service.Impl;

import com.qf.entity.StashDetail;
import com.qf.mapper.DetailMapper;
import com.qf.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 业精于勤,荒于嬉 ---
 *
 * @author Song
 * @date 2024/7/25
 * @desc First
 */
@Service
public class DetailServiceImpl implements DetailService {

    @Autowired
    private DetailMapper mapper;


    @Override
    public List<StashDetail> findAll(HashMap<String, String> map) {
        return mapper.findAll(map);
    }

    @Override
    public boolean deleteById(int id) {
        return mapper.deleteById(id);
    }

    @Override
    public List<String> find3() {
        return mapper.find3();
    }

    @Override
    public boolean edit(HashMap<String, String> map) {
        return mapper.edit(map);
    }
}
